package com.reborn.mall.api.common.exception;

/**
 * TODO: Here is description
 *
 * @author wu.yue
 * @since 2020/1/18
 */
public class CRUDException extends BaseAppException {

    private CRUDErrorCode errorCode;

    public CRUDException(CRUDErrorCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }

    @Override
    public IErrorCode getErrorCode() {
        return errorCode;
    }
}
